package com.yeqian.attachment.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 文件上传配置
 */
@Component
@ConfigurationProperties(prefix = "yeq.file-config")
public class AttachmentConfigProperties {
    private String upload;

    private String uploadType = "local";

    private String typeWhitelist = "doc,docx,xls,xlsx,png,jpg,ppt,txt,pdf,bmp,gif,rar,zip,pptx";

    public String getUpload() {
        return upload;
    }

    public void setUpload(String upload) {
        this.upload = upload;
    }

    public String getUploadType() {
        return uploadType;
    }

    public void setUploadType(String uploadType) {
        this.uploadType = uploadType;
    }

    public String getTypeWhitelist() {
        return typeWhitelist;
    }

    public void setTypeWhitelist(String typeWhitelist) {
        this.typeWhitelist = typeWhitelist;
    }
}
